#ifndef ABSTRACTEDITFORMACTIONS_H
#define ABSTRACTEDITFORMACTIONS_H



#include <QString>



class ItemModel;
class ItemRoot;



class AbstractEditFormActions
{

public:

    virtual ItemModel* model() const = 0;

    virtual void open(ItemRoot* root, const QString& file_path = QString()) = 0;
    virtual bool save() = 0;
    virtual bool saveAs() = 0;

    virtual bool changed() const = 0;
    virtual void updateData() = 0;


protected:

    virtual void initialize() = 0;


};



#endif // ABSTRACTEDITFORMACTIONS_H


